/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Tan_anotacionDetachedCriteria extends AbstractORMDetachedCriteria {
	public final IntegerExpression an_id;
	public final DateExpression an_fecha;
	public final StringExpression an_descripcion;
	public final DateExpression an_fcreacion;
	public final DateExpression an_fmodificacion;
	public final IntegerExpression an_estaactivo;
	public final IntegerExpression an_estaborrado;
	
	public Tan_anotacionDetachedCriteria() {
		super(orm.Tan_anotacion.class, orm.Tan_anotacionCriteria.class);
		an_id = new IntegerExpression("an_id", this.getDetachedCriteria());
		an_fecha = new DateExpression("an_fecha", this.getDetachedCriteria());
		an_descripcion = new StringExpression("an_descripcion", this.getDetachedCriteria());
		an_fcreacion = new DateExpression("an_fcreacion", this.getDetachedCriteria());
		an_fmodificacion = new DateExpression("an_fmodificacion", this.getDetachedCriteria());
		an_estaactivo = new IntegerExpression("an_estaactivo", this.getDetachedCriteria());
		an_estaborrado = new IntegerExpression("an_estaborrado", this.getDetachedCriteria());
	}
	
	public Tan_anotacionDetachedCriteria(DetachedCriteria aDetachedCriteria) {
		super(aDetachedCriteria, orm.Tan_anotacionCriteria.class);
		an_id = new IntegerExpression("an_id", this.getDetachedCriteria());
		an_fecha = new DateExpression("an_fecha", this.getDetachedCriteria());
		an_descripcion = new StringExpression("an_descripcion", this.getDetachedCriteria());
		an_fcreacion = new DateExpression("an_fcreacion", this.getDetachedCriteria());
		an_fmodificacion = new DateExpression("an_fmodificacion", this.getDetachedCriteria());
		an_estaactivo = new IntegerExpression("an_estaactivo", this.getDetachedCriteria());
		an_estaborrado = new IntegerExpression("an_estaborrado", this.getDetachedCriteria());
	}
	
	public Tan_alumnoDetachedCriteria createTan_alumnoalCriteria() {
		return new Tan_alumnoDetachedCriteria(createCriteria("tan_alumnoal"));
	}
	
	public Tan_anotadorDetachedCriteria createTan_anotadoranotCriteria() {
		return new Tan_anotadorDetachedCriteria(createCriteria("tan_anotadoranot"));
	}
	
	public Tan_tipoanotacionDetachedCriteria createTan_tipoanotaciontaCriteria() {
		return new Tan_tipoanotacionDetachedCriteria(createCriteria("tan_tipoanotacionta"));
	}
	
	public Tan_subsectorDetachedCriteria createTan_subsectorsubCriteria() {
		return new Tan_subsectorDetachedCriteria(createCriteria("tan_subsectorsub"));
	}
	
	public Tan_anotacion uniqueTan_anotacion(PersistentSession session) {
		return (Tan_anotacion) super.createExecutableCriteria(session).uniqueResult();
	}
	
	public Tan_anotacion[] listTan_anotacion(PersistentSession session) {
		List list = super.createExecutableCriteria(session).list();
		return (Tan_anotacion[]) list.toArray(new Tan_anotacion[list.size()]);
	}
}

